package cn.yunhe.services.impl;

import cn.yunhe.dao.ISchoolDao;
import cn.yunhe.entity.School;
import cn.yunhe.services.ISchoolServices;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

/**
 * Created by 孙权庆 on 2018/5/30.
 */
@Service
public class SchoolServices implements ISchoolServices {
    @Resource
    private ISchoolDao schoolDao;

    /**
     * 检查登录
     * @param map
     * @return
     */
    @Override
    public School checkLogin(Map map) {
        return schoolDao.findBySchoolName(map);
    }
}
